<?
	include("../model/database.php");
	include("../model/xl_dia_diem_yeu_thich.php");
	$xl_dia_diem_yeu_thich= new xl_dia_diem_yeu_thich();
	
	if(isset($_REQUEST['del']))
	{
		
		
		$delall=$_REQUEST['del'];
		$susses=false;
		if($delall!=0)
		{
			$kq=$xl_dia_diem_yeu_thich->xoaTatCaYeuThich();
			if($kq==1)
			{
				$susses=true;
			}
		}
	}
	else if(isset($_REQUEST['arrayID']))
		{
			$arr=$_REQUEST['arrayID'];
			for($i=0;$i<count($arr);$i++)
			{
				$kq=$xl_dia_diem_yeu_thich->xoaDiaDiem($arr[$i]);
				if($kq==1)
				{
					$susses=true;
				}
			}
		}
		$data = array("Success"=>$success);
		echo json_encode($data);
	
?>